package com.hongtao3.hsync;

import java.io.File;

public class Util {
   public static String getRealPath(String path){
	   System.out.println(path);
	   while(path.contains(File.separator+"..")){
		   System.out.println("match");
		   path=path.replace("com"+File.separator+"..", "");
	   }
	   System.out.println(path);
	   return path;
   }
   public static void main(String[] args){
	   getRealPath("/opt/java/workspaces/colorpad/src/com/../Config.java");
   }
}
